gtk-demo: Clean up initial selection handling
authorMatthias Clasen <mclasen@redhat.com>
Sat, 20 Jun 2020 12:48:29 +0000 (08:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 20 Jun 2020 12:48:29 +0000 (08:48 -0400)
We call selection_cb now, so we don't need to manually
do part of what that call does ahead of time.

This should have been noticed in 10bcbae68c3faf8ae.

demos/gtk-demo/main.c

index f0a3f78efbb8086379a1838e6f5b7fa048339ece..f72723335340e429d44513ad1b76a8fe4b3fbe2e 100644 (file)
@@ -1035,8 +1035,6 @@ activate (GApplication *app)
   listview = GTK_WIDGET (gtk_builder_get_object (builder, "listview"));
   g_signal_connect (listview, "activate", G_CALLBACK (activate_cb), window);
 
-  load_file (gtk_demos[0].name, gtk_demos[0].filename);
-
   listmodel = create_demo_model ();
   treemodel = gtk_tree_list_model_new (FALSE,
                                        G_LIST_MODEL (listmodel),